package br.com.sipe.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import br.com.arquitetura.DAO.UniversalDAO;
import br.com.sipe.DAO.UsuarioDAO;
import br.com.sipe.entidade.Usuario;
import br.com.sipe.service.UsuarioService;

@Service(value = "usuarioService")
@Transactional(readOnly = true, rollbackFor = Exception.class, propagation = Propagation.SUPPORTS)
public class UsuarioServiceImpl implements UsuarioService {

	@Autowired(required = true)
	@Qualifier(value = "universalDAO")
	protected UniversalDAO dao;
	
	@Autowired(required = true)
	@Qualifier(value = "usuarioDAO")
	protected UsuarioDAO usuarioDAO;

	@Override
	public List<Usuario> completeUsuarioAtivo(Usuario a) throws Exception {
		return usuarioDAO.completeUsuarioAtivo(a);
	}

}
